﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SquidConsult.DAL;
using System.Data;

namespace SquidConsult.BLL
{
    public class AccountantBL : PeopleBL
    {
        private AccountantDS accountantDS = new AccountantDS();

        public IQueryable GetAllReport()
        {
            return accountantDS.GetAllReport();
        }

        public void UpdateStatus(Guid reportId, String status)
        {
            accountantDS.UpdateStatus(reportId, status);
        }

        #region Get CompayBudget
        public double GetCompanyTotalExpense()
        {
            return accountantDS.GetCompanyTotalExpense();
        }

        public double GetCompanyRemainBudget()
        {
            return accountantDS.GetCompanyTotalBudget() - GetCompanyTotalExpense();
        }
        #endregion 

        #region Get individaul supervisor approved expense
        public double GetSupervisorTotalExpense(string supervisorName)
        {
            return accountantDS.GetSupervisorTotalExpense(supervisorName);
        }

        public IQueryable GetSupervisorName()
        {
            return accountantDS.GetSupervisorName();
        }
        #endregion 
    }
}